<?php
class User extends ActiveRecord {
	
	/**
	 * @param string $account
	 * @param string $password After hashed
	 * @return User
	 */
	public static function findByAccountAndPassword($account, $password){
		return self::findByAttribute(array(
			'account' => $account,
			'password' => $password
		));
	}
}
?>